package itbour.onetouchshow.adapter;

import android.content.Context;

import itbour.onetouchshow.R;
import itbour.onetouchshow.adapter.base.BaseAdapterHelper;
import itbour.onetouchshow.adapter.base.normal.QuickAdapter;
import itbour.onetouchshow.bean.PrivilegeBean;

/**
 * Created by guoh on 2018/3/27.
 * 功能描述：特权描述
 * 需要的参数：
 */

public class PrivilegeAdapter extends QuickAdapter<PrivilegeBean> {
    public PrivilegeAdapter(Context context) {
        super(context, R.layout.item_privilege);
    }

    @Override
    protected void convert(BaseAdapterHelper helper, PrivilegeBean item, int position) {
        helper.setBackgroundRes(R.id.iv_res, item.getRes());
        helper.setText(R.id.tv_name, item.getName());
        helper.setText(R.id.tv_introduce, item.getIntroduce());
    }
}
